<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .title{
            display: flex;
            justify-content: space-between;
            margin: 20px;
        }
        .title h2{
            font-weight: 700;
        }
        .list .item{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 20px;
        }
        .list .item .left img{
            width: 100px;
        }
        .list .item .content{
            height: 75px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .list .item .content .name{
            font-weight: 700;
        }
        .list .item .content .money{
            color: red;
        }
        .list .item .right{
            display: flex;
        }
        .list .item .right .del{
            width: 20px;
            height: 20px;
            border: 2px solid rgb(21, 102, 172);
            border-radius: 50%;
            text-align: center;
            font-size: 20px;
            line-height: 20px;
            color: rgb(21, 102, 172);
            margin-right: 5px;
        }
        .list .item .right .add{
            width: 22px;
            height: 22px;
            background-color: rgb(21, 102, 172);
            border-radius: 50%;
            text-align: center;
            font-size: 20px;
            line-height: 15px;
            color:white;
            margin-left: 5px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="title">
            <h2>已选商品</h2>
            <span>清空</span>
        </div>
        <div class="list">
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="left">
                    <img v-bind:src="item.pic" alt="">
                </div>
                <div class="content">
                    <div class="name">{{ item.name }}</div>
                    <div class="money">{{ item.money }}</div>
                </div>
                <div class="right">
                    <div class="del">-</div>
                    <div>{{ item.status }}</div>
                    <div class="add">+</div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    let x = new Vue({
        el:'#app',
        data:{
            tasklist:[
                {id:1,pic:'./img/pic8.jpg',name:'秋刀鱼/斤',money:'￥35.00',status:1},
                {id:2,pic:'./img/pic9.jpg',name:'鲜大带鱼/条',money:'￥45.00',status:2},
                {id:3,pic:'./img/pic10.jpg',name:'鲜活全母皮皮虾/斤',money:'￥85.00',status:3}
            ]
        }
    })
</script>